# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-nmea2
_pkgname=pynmea2
pkgver=1.16.0
pkgrel=2
pkgdesc="Python library for the NMEA 0183 protocol"
url="https://github.com/Knio/pynmea2"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/Knio/pynmea2/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest .
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="e4729c738ad8dfec7505dddf4a467098f00f9435db7f54365d5e0d8638d3eef855f4a0178768c992c372025995b128d905b5d12d040eb7f14791450fac35d1f9  py3-nmea2-1.16.0.tar.gz"
